/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * PantallaPedidos.java
 *
 * Created on 30/05/2011, 12:35:29
 */

package interfacesGraficas;

import javax.swing.ButtonGroup;
import javax.swing.JButton;
import javax.swing.JRadioButton;
import javax.swing.JTable;
import javax.swing.JTextField;

/**
 *
 * @author eduardo
 */
public class PantallaPedidos extends javax.swing.JInternalFrame {

    /** Creates new form PantallaPedidos */
    public PantallaPedidos() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {
        java.awt.GridBagConstraints gridBagConstraints;

        groupBuscaPedidos = new javax.swing.ButtonGroup();
        jToolBar1 = new javax.swing.JToolBar();
        botonNuevoPedido = new javax.swing.JButton();
        botonActualizarPedido = new javax.swing.JButton();
        botonEliminarPedido = new javax.swing.JButton();
        botonSalir = new javax.swing.JButton();
        jPanel1 = new javax.swing.JPanel();
        jLabel1 = new javax.swing.JLabel();
        campoFechaDesde = new javax.swing.JTextField();
        campoFechaHasta = new javax.swing.JTextField();
        campoNroPedido = new javax.swing.JTextField();
        jRadioButtonNPedido = new javax.swing.JRadioButton();
        jRadioButtonFechaDesde = new javax.swing.JRadioButton();
        botonBuscarPedido = new javax.swing.JButton();
        jPanel2 = new javax.swing.JPanel();
        jScrollPane1 = new javax.swing.JScrollPane();
        tablaPedido = new javax.swing.JTable();

        getContentPane().setLayout(new java.awt.GridBagLayout());

        jToolBar1.setRollover(true);

        botonNuevoPedido.setIcon(new javax.swing.ImageIcon(getClass().getResource("/utilidades/imagenes/iconos/proveedor-30.png"))); // NOI18N
        botonNuevoPedido.setToolTipText("Nuevo Pedido");
        botonNuevoPedido.setFocusable(false);
        botonNuevoPedido.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        botonNuevoPedido.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        jToolBar1.add(botonNuevoPedido);

        botonActualizarPedido.setIcon(new javax.swing.ImageIcon(getClass().getResource("/utilidades/imagenes/iconos/document_pencil_30.png"))); // NOI18N
        botonActualizarPedido.setToolTipText("Editar Pedido\n");
        botonActualizarPedido.setFocusable(false);
        botonActualizarPedido.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        botonActualizarPedido.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        jToolBar1.add(botonActualizarPedido);

        botonEliminarPedido.setIcon(new javax.swing.ImageIcon(getClass().getResource("/utilidades/imagenes/iconos/user-trash-30.png"))); // NOI18N
        botonEliminarPedido.setToolTipText("Eliminar Pedido\n");
        botonEliminarPedido.setFocusable(false);
        botonEliminarPedido.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        botonEliminarPedido.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        jToolBar1.add(botonEliminarPedido);

        botonSalir.setIcon(new javax.swing.ImageIcon(getClass().getResource("/utilidades/imagenes/iconos/Log-out-30.png"))); // NOI18N
        botonSalir.setToolTipText("Salir");
        botonSalir.setFocusable(false);
        botonSalir.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        botonSalir.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        jToolBar1.add(botonSalir);

        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 0;
        gridBagConstraints.ipadx = 400;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
        gridBagConstraints.weightx = 1.0;
        gridBagConstraints.weighty = 1.0;
        getContentPane().add(jToolBar1, gridBagConstraints);

        jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder("Búsquedas"));
        jPanel1.setLayout(new java.awt.GridBagLayout());

        jLabel1.setText("hasta");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 2;
        gridBagConstraints.gridy = 1;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
        gridBagConstraints.insets = new java.awt.Insets(10, 10, 10, 0);
        jPanel1.add(jLabel1, gridBagConstraints);

        campoFechaDesde.setEnabled(false);
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 1;
        gridBagConstraints.ipadx = 100;
        gridBagConstraints.insets = new java.awt.Insets(5, 10, 10, 0);
        jPanel1.add(campoFechaDesde, gridBagConstraints);

        campoFechaHasta.setEnabled(false);
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 3;
        gridBagConstraints.gridy = 1;
        gridBagConstraints.ipadx = 100;
        gridBagConstraints.insets = new java.awt.Insets(5, 10, 10, 10);
        jPanel1.add(campoFechaHasta, gridBagConstraints);
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 0;
        gridBagConstraints.ipadx = 100;
        gridBagConstraints.insets = new java.awt.Insets(5, 10, 10, 0);
        jPanel1.add(campoNroPedido, gridBagConstraints);

        groupBuscaPedidos.add(jRadioButtonNPedido);
        jRadioButtonNPedido.setSelected(true);
        jRadioButtonNPedido.setText("Nº Pedido:");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 0;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.FIRST_LINE_START;
        gridBagConstraints.insets = new java.awt.Insets(10, 10, 10, 0);
        jPanel1.add(jRadioButtonNPedido, gridBagConstraints);

        groupBuscaPedidos.add(jRadioButtonFechaDesde);
        jRadioButtonFechaDesde.setText("Fecha desde:");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 1;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
        gridBagConstraints.insets = new java.awt.Insets(10, 10, 10, 0);
        jPanel1.add(jRadioButtonFechaDesde, gridBagConstraints);

        botonBuscarPedido.setIcon(new javax.swing.ImageIcon(getClass().getResource("/utilidades/imagenes/iconos/Search-20.png"))); // NOI18N
        botonBuscarPedido.setText("Buscar");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 4;
        gridBagConstraints.gridy = 1;
        gridBagConstraints.insets = new java.awt.Insets(5, 10, 10, 10);
        jPanel1.add(botonBuscarPedido, gridBagConstraints);

        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 1;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
        gridBagConstraints.weightx = 1.0;
        gridBagConstraints.weighty = 1.0;
        gridBagConstraints.insets = new java.awt.Insets(10, 10, 10, 0);
        getContentPane().add(jPanel1, gridBagConstraints);

        jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder("Pedidos"));

        tablaPedido.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null}
            },
            new String [] {
                "Title 1", "Title 2", "Title 3", "Title 4"
            }
        ));
        jScrollPane1.setViewportView(tablaPedido);

        javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
        jPanel2.setLayout(jPanel2Layout);
        jPanel2Layout.setHorizontalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 684, Short.MAX_VALUE)
            .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 684, Short.MAX_VALUE))
        );
        jPanel2Layout.setVerticalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 495, Short.MAX_VALUE)
            .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel2Layout.createSequentialGroup()
                    .addContainerGap()
                    .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 447, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(36, Short.MAX_VALUE)))
        );

        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 2;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
        gridBagConstraints.weightx = 1.0;
        gridBagConstraints.weighty = 1.0;
        getContentPane().add(jPanel2, gridBagConstraints);

        pack();
    }// </editor-fold>//GEN-END:initComponents


    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton botonActualizarPedido;
    private javax.swing.JButton botonBuscarPedido;
    private javax.swing.JButton botonEliminarPedido;
    private javax.swing.JButton botonNuevoPedido;
    private javax.swing.JButton botonSalir;
    private javax.swing.JTextField campoFechaDesde;
    private javax.swing.JTextField campoFechaHasta;
    private javax.swing.JTextField campoNroPedido;
    private javax.swing.ButtonGroup groupBuscaPedidos;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JRadioButton jRadioButtonFechaDesde;
    private javax.swing.JRadioButton jRadioButtonNPedido;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JToolBar jToolBar1;
    private javax.swing.JTable tablaPedido;
    // End of variables declaration//GEN-END:variables

    public JButton getBotonActualizarPedido() {
        return botonActualizarPedido;
    }

    public void setBotonActualizarPedido(JButton botonActualizarPedido) {
        this.botonActualizarPedido = botonActualizarPedido;
    }

    public JButton getBotonBuscarPedido() {
        return botonBuscarPedido;
    }

    public void setBotonBuscarPedido(JButton botonBuscarPedido) {
        this.botonBuscarPedido = botonBuscarPedido;
    }

    public JButton getBotonEliminarPedido() {
        return botonEliminarPedido;
    }

    public void setBotonEliminarPedido(JButton botonEliminarPedido) {
        this.botonEliminarPedido = botonEliminarPedido;
    }

    public JButton getBotonNuevoPedido() {
        return botonNuevoPedido;
    }

    public void setBotonNuevoPedido(JButton botonNuevoPedido) {
        this.botonNuevoPedido = botonNuevoPedido;
    }

    public JButton getBotonSalir() {
        return botonSalir;
    }

    public void setBotonSalir(JButton botonSalir) {
        this.botonSalir = botonSalir;
    }

    public JTextField getCampoFechaDesde() {
        return campoFechaDesde;
    }

    public void setCampoFechaDesde(JTextField campoFechaDesde) {
        this.campoFechaDesde = campoFechaDesde;
    }

    public JTextField getCampoFechaHasta() {
        return campoFechaHasta;
    }

    public void setCampoFechaHasta(JTextField campoFechaHasta) {
        this.campoFechaHasta = campoFechaHasta;
    }

    public JTextField getCampoNroPedido() {
        return campoNroPedido;
    }

    public void setCampoNroPedido(JTextField campoNroPedido) {
        this.campoNroPedido = campoNroPedido;
    }

    public ButtonGroup getGroupBuscaPedidos() {
        return groupBuscaPedidos;
    }

    public void setGroupBuscaPedidos(ButtonGroup groupBuscaPedidos) {
        this.groupBuscaPedidos = groupBuscaPedidos;
    }

    public JTable getTablaPedido() {
        return tablaPedido;
    }

    public void setTablaPedido(JTable tablaPedido) {
        this.tablaPedido = tablaPedido;
    }

    public JRadioButton getjRadioButtonFechaDesde() {
        return jRadioButtonFechaDesde;
    }

    public void setjRadioButtonFechaDesde(JRadioButton jRadioButtonFechaDesde) {
        this.jRadioButtonFechaDesde = jRadioButtonFechaDesde;
    }

    public JRadioButton getjRadioButtonNPedido() {
        return jRadioButtonNPedido;
    }

    public void setjRadioButtonNPedido(JRadioButton jRadioButtonNPedido) {
        this.jRadioButtonNPedido = jRadioButtonNPedido;
    }
    
    

    
    
    

}
